package com.hopes.bizz.line.common.service;

import com.hopes.bizz.line.pipe.mapper.LinePipeMapper;
import com.hopes.bizz.line.pipe.mapper.LinePipelineMapper;
import com.hopes.boss.admin.api.entity.SysDictItem;
import com.hopes.boss.common.service.TableDictService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 数据表转字典
 * @time 2024/2/21 21:33
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class ParkLineDictServiceImpl implements TableDictService {

    private final LinePipelineMapper linePipelineMapper;

    private final LinePipeMapper linePipeMapper;

    /**
     * 管段表转字典
     */
    public List<SysDictItem> listLinePipeListAsDict() {
        return linePipeMapper.labelValueList();
    }

    /**
     * 管线表转字典
     */
    public List<SysDictItem> listLinePipeLineListAsDict() {
        return linePipelineMapper.labelValueList();
    }



}
